package com.pureut.storage.controller;

import com.pureut.storage.dto.PickingRestDetailDto;
import com.pureut.storage.service.PickingRestDetailService;
import com.sale.common.core.web.controller.BaseController;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: YSL
 * @Date: 2023/2/3 16:57
 * @Desc: 其他出库明细控制层
 */
@RestController
@RequestMapping("/pickingRestDetail")
public class PickingRestDetailController extends BaseController {

    /**
     * 其他出库明细service
     */
    @Resource
    PickingRestDetailService pickingRestDetailService;

    /**
     *  其他出库明细列表
     */
    @GetMapping("/list")
    public TableDataInfo<PickingRestDetailDto> getRestList(String wodDocNum, PageQuery pageQuery) {

        //查询其他出库退货列表
        return pickingRestDetailService.getRestList(wodDocNum,pageQuery);

    }

}
